package cn.pid21.client.model.datapid;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * Subject Description
 *
 * @author yaol
 * @version datapid-md-service 1.0.0.RELEASE
 * <b>Creation Time:</b> 2021/4/14 15:45
 */
@Data
@Getter
@Setter
public class Subject {

    /**
     * 分类名称
     */
    @NotBlank(message = "分类名称 不能为空")
    @JacksonXmlElementWrapper(localName = "subject_names")
    @JacksonXmlProperty(localName = "subject_name")
    private List<String> subjectName;

    /**
     * 分类名称标准
     */
    @NotBlank(message = "分类名称标准 不能为空")
    @JacksonXmlProperty(localName = "subject_name_standard")
    private String subjectNameStandard;

    /**
     * 关键词（中文）
     */
    @JacksonXmlElementWrapper(localName = "keywords_cns")
    @JacksonXmlProperty(localName = "keywords_cn")
    private List<String> keyWordsCN;

    /**
     * 关键词（英文）
     */
    @JacksonXmlElementWrapper(localName = "keywords_ens")
    @JacksonXmlProperty(localName = "keywords_en")
    private List<String> keyWordsEN;

}
